package builder;

/**
 * 指挥者：指导 如何 建造
 **/
public class Director {
	private MazeBuilder builder;

	public Director(MazeBuilder builder) {

		this.builder = builder;
	}

	/**
	 * 建造方法：定义了建造的流程
	 */
	public void construct() {
		builder.Buildmaze();
		builder.BuildRoom(1);
		builder.BuildRoom(2);
		builder.BuildDoor(1, 2);
	}
}
